package com.lsh.oms.core.model.bills;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.joda.time.DateTime;

/**
 *
 * @author xuzhan
 * @date 16/11/4
 */
@Setter
@Getter
@NoArgsConstructor
public class MessageBean {

   private String operateBill;

   private String message;

   private Long scheduledAt;

   public boolean shouldConsume() {
      return scheduledAt == null || new DateTime(scheduledAt).isBeforeNow();
   }
}
